import 'package:dailoz/generated/json/base/json_convert_content.dart';
import 'package:dailoz/entity/task_day_entity.dart';

TaskDayEntity $TaskDayEntityFromJson(Map<String, dynamic> json) {
  final TaskDayEntity taskDayEntity = TaskDayEntity();
  final String? title = jsonConvert.convert<String>(json['title']);
  if (title != null) {
    taskDayEntity.title = title;
  }
  final int? num = jsonConvert.convert<int>(json['num']);
  if (num != null) {
    taskDayEntity.num = num;
  }
  return taskDayEntity;
}

Map<String, dynamic> $TaskDayEntityToJson(TaskDayEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['title'] = entity.title;
  data['num'] = entity.num;
  return data;
}
